package com.cszjzx.member.dao;

import java.io.IOException;
import java.sql.SQLException;
import java.util.List;
import com.cszjzx.member.po.Major;
public interface MajorDAO {
	void add(Major c) throws SQLException;
	void dalete(int id) throws SQLException;
	/**
	 * 查询所有班级
	 * @return
	 * @throws IOException 
	 * @throws SQLException 
	 * @throws ClassNotFoundException 
	 */
	public List<Major> findAll() throws ClassNotFoundException, SQLException, IOException;
	public List<Major> findByDepartmentId(int departmentId) throws ClassNotFoundException, SQLException, IOException;
	public List<Major> findByDepartmentName(String departmentName) throws ClassNotFoundException, SQLException, IOException;
	
	public List<Major> getPageContent(int everyPage, int beginPage, int departmentId) throws ClassNotFoundException, SQLException, IOException;
	public int getNumsByIdAndProcess(int id,int porcess) throws SQLException;
	
	public int getMajorId(String Major) throws ClassNotFoundException, SQLException, IOException;
}
